//
//  QScanMaskView.m
//  QoilPublic
//
//  Created by 杨凯 on 16/7/21.
//  Copyright © 2016年 杨凯. All rights reserved.
//

#import "QScanMaskView.h"

@implementation QScanMaskView

- (instancetype)initWithFrame:(CGRect)frame{

    self = [super initWithFrame:frame];
    if(self){
        
    
    }
    return self;
}

- (void)drawRect:(CGRect)rect{

    [super drawRect:rect];
    CGContextRef ctx = UIGraphicsGetCurrentContext();
    CGContextSetRGBFillColor(ctx, 0, 0, 0, 0.4);
    CGContextFillRect(ctx, self.bounds);
    CGContextClearRect(ctx, _cropRect);
    CGContextDrawPath(ctx, kCGPathFillStroke);

}

@end
